package dimension.starry.utils;

public class StringUtil {

    public static String formatDouble(double number) {
        return number % 1.0D == 0.0D ? String.format("%.0f", number) : String.format("%.1f", number);
    }

}
